package com.quasar.hpatient.module.discover_recommend;

import android.content.Intent;
import android.support.v7.widget.RecyclerView;

import com.quasar.hpatient.R;
import com.quasar.hpatient.module.comm_web.WebActivity;

import lib.quasar.base.frame.BaseFragment;

/**
 * description: 发现 ==> 推荐资讯
 * created by kalu on 2018/3/19 16:14
 */
public class DiscoverRecommendFragment extends BaseFragment<DiscoverRecommendPresenter> implements DiscoverRecommendView {

    @Override
    public int initView() {
        return R.layout.fragment_discover_recommend;
    }

    @Override
    public void initDataLocal() {

        final RecyclerView recycler = getView().findViewById(R.id.fragment_discover_recommend_recycler);
        getPresenter().initList(this, recycler);
    }

    @Override
    public void initDataNet() {
    }

    @Override
    public void goWeb(String url) {

        Intent intent = new Intent(getContext(), WebActivity.class);
        intent.putExtra(WebActivity.WEB_URL, url);
        goNext(intent);
    }
}